package cn.sunlight.wordread.pojo;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.io.Serializable;
import java.util.Date;

/**
 * @ClassName: WorkExperience
 * @Description: 工作经验实体类
 * @Author: sunlight
 * @Date: 9:19 - 2022/3/8
 * @Version: 1.0
 **/
public class WorkExperience implements Serializable {

    private static final long serialVersionUID = -3195860085800906638L;

    private Long workId;//工作经验id
    private Long resumeId; //简历id
    private Date startTime;//开始时间
    private Date endTime;//结束时间
    private String compName; //公司名称
    private String position;//职位
    private String workDesc; //工作描述

    public WorkExperience() {
    }

    public WorkExperience(Long workId, Long resumeId, Date startTime, Date endTime, String compName, String position, String workDesc) {
        this.workId = workId;
        this.resumeId = resumeId;
        this.startTime = startTime;
        this.endTime = endTime;
        this.compName = compName;
        this.position = position;
        this.workDesc = workDesc;
    }

    public Long getWorkId() {
        return workId;
    }

    public void setWorkId(Long workId) {
        this.workId = workId;
    }

    public Long getResumeId() {
        return resumeId;
    }

    public void setResumeId(Long resumeId) {
        this.resumeId = resumeId;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public String getCompName() {
        return compName;
    }

    public void setCompName(String compName) {
        this.compName = compName;
    }

    public String getPosition() {
        return position;
    }

    public void setPosition(String position) {
        this.position = position;
    }

    public String getWorkDesc() {
        return workDesc;
    }

    public void setWorkDesc(String workDesc) {
        this.workDesc = workDesc;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("workId",getWorkId())
                .append("resumeId",getResumeId())
                .append("startTime",getStartTime())
                .append("endTime",getEndTime())
                .append("compName",getCompName())
                .append("position",getPosition())
                .append("workDesc",getWorkDesc())
                .toString();
    }
}
